<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2014 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

// 应用入口文件
header('Content-Type: text/html; charset=utf-8');
if(isset($_GET['tel'])){
    if($_GET['tel'] == '111'){
        $array = array(
            'tel' => '13800138000',
            'user_name' => 'user_name',
            'sex' => '1',
            'job' => '销售',
            'age' => '18'
        );
    }else{
        $array = array(
            'tel' => '222',
            'user_name' => '222',
            'sex' => '221',
            'job' => '222',
            'age' => '222'
        );
    }
}else{
    $array = array(
        'tel' => '111',
        'user_name' => '111',
        'sex' => '1',
        'job' => '111',
        'age' => '111'
    );
}
echo json_encode($array);